EMT Practice Test
1. Question Content...
Question1: terraform refresh command will not modify infrastructure, but does modify the state file.
Question3: Which of the following is not true of Terraform providers?
Question4: What is the name assigned by Terraform to reference this resource?
Question6: Which of the following statements about local modules is incorrect:
Question8: What does the command terraform fmt do?
Question10: What is the result of the following terraform function call?
Question11: What is the purpose of a Terraform workspace in either open source of enterprise?
Question18: Which of the below configuration file formats are supported by Terraform? (Select TWO)
Question21: Which of the following is not a valid string function in Terraform?
Question23: Terraform plan updates your state file.
Question25: When does Sentinel enforce policy logic during a Terraform Enterprise run?
Question29: What does this code do?
Question31: What advantage does an operations team that uses infrastructure as code have?
Question32: What is the result of the following terraform function call?
Question33: You cannot publish your own modules on the Terraform Registry.
Question40: Using multi-cloud and provider-agnostic tools provides which of the following benefits?
Question42: Where in your Terraform configuration do you specify a state backend?
Question43: From the code below, identify the implicit dependency:
Question50: Complete the following sentence:
The terraform state command can be used to ____
Question52: How does Terraform handle working with so many providers?
Question53: Which task does terraform init not perform?
Question55: Any user can publish modules to the public Terraform Module Registry.
Question56: terraform init retrieves the source code tot all referenced modules
Question57: Which of the following actions are performed during a terraform init?
Question59: State locking does not happen automatically and must be specified at run
Question60: Which of the following statements best describes the Terraform list(...) type?
Question63: Which of the following is considered a Terraform plugin?
Question65: Terraform works well in Windows but a Windows server is required.
Question67: When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
Question69: You cannot publish your own modules on the Terraform Registry.
Question71: Where does the Terraform local backend store its state?
Question73: When should you use the force-unlock command?
Question74: Terra form installs its providers during which phase?
Question83: Which of the following is not a valid Terraform string function?
Question87: Which of the following value will be accepted for var1?
variable "var1" {
type = string
}
Question89: Terraform works well in Windows but a Windows server is required.
Question91: Which of the following best describes the default local backend?
Question94: Given the Terraform configuration below, in which order will the resources be created?
Question95: Which argument(s) is (are) required when declaring a Terraform variable?
Question102: Terraform must track metadata such as resource dependencies. Where is this data stored?
Question105: Module version is required to reference a module on the Terraform Module Registry.
Question107: What does the default "local" Terraform backend store?
Question111: Provisioners should only be used as a last resort.
Question113: Why might a user opt to include the following snippet in their configuration file?
Question114: One remote backend configuration always maps to a single remote workspace.
Question117: What is the workflow for deploying new infrastructure with Terraform?
Question120: Which option can not be used to keep secrets out of Terraform configuration files?
Question124: Terraform must track metadata such as resource dependencies. Where is this data stored?
Question129: Which of the following is not an action performed by terraform init?
Question131: Given the Terraform configuration below, in which order will the resources be created?
Question137: Which of the following is not a valid Terraform string function?
Question141: Which one of the following will run echo 0 and echo 1 on a newly created host?
Question143: In the example below, the depends_on argument creates what type of dependency?
Question150: Terraform providers are always installed from the Internet.
Question151: What command should you run to display all workspaces for the current configuration?
Question154: What command should you run to display all workspaces for the current configuration?
Question155: lookup retrieves the value of a single element from which of the below data type?
Question158: What is the purpose of using the local-exec provisioner? (Select Two)
Question159: If a module uses a local variable, you can expose that value with a terraform output.
Question161: Which of the following clouds does not have a provider maintained HashiCorp?
Question163: What is the workflow for deploying new infrastructure with Terraform?
Question165: How is terraform import run?
Question166: Which of the following is an invalid variable name?
Question168: Which of the following can you do with terraform plan? Choose two correct answers.
Question169: What kind of resource dependency is stored in terraform.tfstate file?
Question171: What does terraform refresh command do?
Question172: Which one is the right way to import a local module names consul?
Question173: Which provisioner invokes a process on the resource created by Terraform?
Question174: You have to initialize a Terraform backend before it can be configured.
Question175: Terraform validate reports syntax check errors from which of the following scenarios?





